Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added pid_wait_until_index_started (#198) #201

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Conversation

ssejrog
Copy link
Member

@ssejrog ssejrog commented Nov 29, 2024

Summary:

Added pid_wait_until_index_started() which triggers once the index becomes the target

Motivation:

References (optional):

#198

Test Plan:

Run this and make sure the pid wait prints 12, 24

chassis.pid_odom_set({{{0_in, 24_in}, fwd, 110},
                      {{12_in, 24_in}, rev, 110},
                      {{24_in, 24_in}, rev, 110}},
                     true);
chassis.pid_wait_until_index(1);  // Waits until the robot passes 12, 24
Intake.move(127);
chassis.pid_wait();

Run this and make sure the pid wait prints something closer to 2, 24

chassis.pid_odom_set({{{0_in, 24_in}, fwd, 110},
                      {{12_in, 24_in}, rev, 110},
                      {{24_in, 24_in}, rev, 110}},
                     true);
chassis.pid_wait_until_index_started(1);  // Waits until the robot passes 12, 24
Intake.move(127);
chassis.pid_wait();
  • test item

Download the template for this pull request:

Note

This is auto generated from Add Template to Pull Request

curl -o [email protected]+297f45.zip https://nightly.link/EZ-Robotics/EZ-Template/actions/artifacts/2255396226.zip;
pros c fetch [email protected]+297f45.zip;
pros c apply [email protected]+297f45;
rm [email protected]+297f45.zip;

@ssejrog ssejrog self-assigned this Nov 29, 2024
@ssejrog ssejrog merged commit 33df39d into dev Nov 29, 2024
2 checks passed
@ssejrog ssejrog deleted the bug/wait-index-passed branch December 18, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant